extends Panel


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
	$MenuAction/Hbox/Learn.connect("pressed",self,"on_class_select")
#	$MenuAction/Hbox/Work.connect("pressed",get_tree().current_scene.get_node("AnPaiPanel/PiLaoBg/WeeksShow"),"on_week_show",[Global.current_edit_week,"fuwushen"])
	$Close.connect("pressed",self,"on_menu_close")
	
	pass # Replace with function body.

func on_menu_close():
	if $MenuClass.visible:
		$MenuClass.hide()
		$MenuAction.show()
	elif $MenuAction.visible:
		self.hide()
		
func on_class_select():
	$MenuAction.hide()
	$MenuClass.show()
	
func on_show(week):
	Global.current_edit_week = week
#	print_debug(Global.current_edit_week)
	self.show()
	pass
